﻿using System.ComponentModel.DataAnnotations;

namespace Work.API.Dtos
{
    /// <summary>
    /// 用户登录信息DTO
    /// </summary>
    public class LoginDTO
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名（用于登录）
        /// </summary>

        public string? Username { get; set; } 

        /// <summary>
        /// 密码（存储加密后的密码）
        /// </summary>

        public string? Password { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public string? Role { get; set; }

        /// <summary>
        /// 昵称（显示名称）
        /// </summary>
        public string? NickName { get; set; }
        /// <summary>
        /// 登录是否成功
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// 错误消息
        /// </summary>
        public string? Message { get; set; }
    }
}
